package com.example.designpattenexample.strategy.example;

//抽象折扣策略类
public abstract class DiscountStrategy {
    private ShoppingCard card;

    public DiscountStrategy(ShoppingCard card) {
       this.card = card;
    }

    public abstract double getDiscountAmount();

    public ShoppingCard getCard() {
        return card;
    }

    public void setCard(ShoppingCard card) {
        this.card = card;
    }
}
